package com.jic.order.api;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.order.manage.request.OrderDistributionMemberRequest;
import com.jic.order.manage.response.OrderDistributionMembertResponse;
import com.jic.order.request.DistributorOrderRequest;
import com.jic.order.response.OrderGoodsInfo;
import com.jic.order.rest.response.OrderGoodsResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * description: 订单提供给分销服务内部调用类
 *
 * @author: jackHe
 * @time: 2020/8/8 14:49
 */
@FeignClient(name = "jic-order", path = "/feign/distributionOrder")
public interface DistributionOrderApi {

    /**
     * description: 分销员列表
     *
     * @author: jackHe
     * @time: 2020/8/8 14
     */
    @GetMapping("/getDistributionOrderInfo")
    OrderGoodsInfo getDistributionOrderInfo(@RequestParam("orderNo") String orderNo);

    /**
     * 查询分销订单
     *
     * @return
     */
    @PostMapping("/queryDistributionOrder")
    PageResult<OrderGoodsInfo> queryDistributionOrder(@RequestBody DistributorOrderRequest distributorOrderRequest);

}
